<p>
  <b>Name:</b>
  <%=h @product_category.name %>
</p>

<p>
  <b>Created by:</b>
  <%= link_to h(@product_category.user.login), @product_category.user if @product_category.user %>
</p>

<% if @product_category.parent %>
	<p>
	  <b>Parent category:</b>
	  <%= h @product_category.parent.name %>
	</p>
<% end %>

<% unless @product_category.products.blank? %>
	<h2>Products</h2>
	<%= render :partial => 'product', :collection => @product_category.products %>
<% end %>

<h3>Miss product ? <%= link_to 'Add one', new_product_path %></h3>

<%= link_to 'Edit', edit_product_category_path(@product_category) %> |
<%= link_to 'Back', product_categories_path %>
